/** init domain config */
import Vue from 'vue'
//设置全局API_BASE_URL
Vue.prototype.API_BASE_URL = process.env.VUE_APP_API_BASE_URL
window._CONFIG['domianURL'] = Vue.prototype.API_BASE_URL
//单点登录地址
window._CONFIG['casPrefixUrl'] = process.env.VUE_APP_CAS_BASE_URL
window._CONFIG['onlinePreviewDomainURL'] =  process.env.VUE_APP_ONLINE_BASE_URL
window._CONFIG['staticDomainURL'] = Vue.prototype.API_BASE_URL + '/sys/common/static'
window._CONFIG['pdfDomainURL'] = Vue.prototype.API_BASE_URL+ '/sys/common/pdf/pdfPreviewIframe'

window._BMAP = {}
window._BMAP.webApiBasePath = process.env.NODE_ENV == 'development' ? '/dugis-baidu' : 'https://sxyyxt.cn/dugis-baidu';
window._BMAP.coordinateType = 'bd09ll' // 当前坐标类型，用于webAPI传参
window._BMAP.defaultCenterPoint = [116.404, 39.915] // 中心点经纬度
// DuGIS权限校验
window._BMAP.apiAuthorization = 'baidu-7350bc8acbc545d2a2e7e09f0f06b8f2'